package Service;

/**
 * Manages user output
 * @author Yury Kitaev
 *
 */

public class OutputManager 
{
	/**
	 * Prints text with new line
	 * @param iOutput The message to output
	 */
	public static void println(String iOutput)
	{
		System.out.println(iOutput);
	}
	
	/**
	 * Prints text without new line
	 * @param iOutput
	 */
	public static void print(String iOutput)
	{
		System.out.print(iOutput);
	}

	/**
	 * Offers a of several items
	 * @param title The header of the menue
	 * @param options Items to choose from. Don't include numbers, the are generated.
	 */
	public static void offerChoiceMenu(String title, String ... options)
	{
		println("\n" + title);
		for (int i = 0; i < options.length; ++i)
		{
			println("\t" + (i + 1) + ". " + options[i]);
		} 
		println("");
	}
}
